import request from '@/config/axios'

// 获得列表
export const getTopicList = (params: any) => {
  return request.get({ url: '/community/topic/tag/list', params })
}
// 创建信息
export const createTopic = (data: any) => {
  return request.post({ url: '/community/topic/tag/create', data })
}
// 获取信息
export const getTopic = (id: any) => {
  return request.get({ url: `/community/topic/tag/${id}` })
}
// 修改信息
export const updateTopic = (data: any) => {
  return request.put({ url: '/community/topic/tag/update', data })
}
// 删除信息
export const deleteTopic = (id: any) => {
  return request.delete({ url: `/community/topic/tag/${id}` })
}
